package com.zyc.controller;

import com.zyc.common.DaoCaoResult;
import com.zyc.dto.LoginDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/auth")
@Slf4j
//@CrossOrigin
public class AuthController {
//    private static final Logger log = LoggerFactory.getLogger(AuthController.class);
//
//    @GetMapping("/test")
//    public String test() {
//        return "test";
//    }

    /**
     * 系统用户登陆
     * @return
     */
    @PostMapping("/sys")
    public DaoCaoResult sysLogin(@RequestBody LoginDto loginDto) {
        log.info("loginDto========>{}",loginDto);
        return DaoCaoResult.success();
    }

}
